GBML manual / Backgrounds

EDGE_COLOR

One solid color past the edge: the color you give background_edge as its third argument.

Works differently on Game Boy - The Game Boy decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Works differently on Game Boy Color - The Game Boy Color decides what a picture shows past its edge when the game is built (see background_edge); the choice is read from the plain name written in the call.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

EDGE_COLOR: constant

Description

Names the edge where one solid color shows past the picture, for background_edge. The color is the third argument, one of the eight COLOR_ names.

Example

backdrop = background_create(0, 0, ts_doc_dungeon);
background_edge(backdrop, EDGE_COLOR, COLOR_BLUE);

Makes everything past the picture's edge blue.

See also: background_edgebackground_repeat